projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9011272
)
gtk-demo: fix colorchooser example
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 4 Dec 2013 04:30:52 +0000
(23:30 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 4 Dec 2013 04:30:52 +0000
(23:30 -0500)
A nested dialog on top of a modal dialog must itself be modal,
otherwise it doesn't get any input.
demos/gtk-demo/colorsel.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/colorsel.c
b/demos/gtk-demo/colorsel.c
index 73042f932f313c9046f1962674ac7e5a54b3517e..566af21e5223142dcc482cc9a4e3cc4e8091a1a3 100644
(file)
--- a/
demos/gtk-demo/colorsel.c
+++ b/
demos/gtk-demo/colorsel.c
@@
-52,6
+52,7
@@
change_color_callback (GtkWidget *button,
GtkWidget *dialog;
dialog = gtk_color_chooser_dialog_new ("Changing color", GTK_WINDOW (window));
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &color);
g_signal_connect (dialog,